package com.alibaba.middleware.hsf.guide.api.service;

import com.alibaba.middleware.hsf.guide.api.model.OrderModel;

import java.util.List;

public interface OrderService {

    /**
     * <pre>
     * 根据订单id查询一笔订单
     * 
     * </pre>
     * 
     * @param id 订单id
     * @return 如果查询不到返回null
     */
    OrderModel queryOrder(Long id);

    /**
     * <pre>
     * 根据一组订单id查询
     * 
     * </pre>
     * 
     * @param idList
     * @return 如果查询不到返回空集合
     */
    List<OrderModel> queryOrderList(List<Long> idList);

}
